package IA.GA.editorial;

import org.jgap.Configuration;
import org.jgap.InvalidConfigurationException;
import org.jgap.impl.BestChromosomesSelector;
import org.jgap.impl.CrossoverOperator;
import org.jgap.impl.MutationOperator;


public class Config5 extends AbstractConfigFactory {

	@Override
	public void setParameters(Configuration conf)
			throws InvalidConfigurationException {
		CrossoverOperator operator = new CrossoverOperator(conf);
		conf.addGeneticOperator(operator);
		
		conf.addGeneticOperator(new MutationOperator(conf, 1000));
		
		conf.addNaturalSelector( new BestChromosomesSelector(conf),true);		
	}
}
